/* 
 * File:   Log.h
 * Author: fliaali
 *
 * Created on 1 de octubre de 2013, 11:36
 */

#ifndef LOG_H
#define	LOG_H

#include <string.h> 
#include <stdio.h>
#include <iostream>
#include <fstream>
#include <ctime>

using namespace std;

class Log{
private:
	bool nuevo;
	string error;
	int write(string message, string tipo);
	static Log * instance;
	Log(){}
public:
	static Log * getInstance();
	int ERROR(string message);
	int WARNING(string message);
	int INFO(string message);
	string getERROR();
        string getDateTimeNow();
	~Log();
};

#endif	/* LOG_H */

